﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameFramework.ModelManager.SkinnedModelPipeline;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace MyRaceGame.GameLogic
{
    public class AttachedRacerCharacter : RacerDecorator
    {
        public AttachedRacerCharacter(RacerCharacter skinnedModel, Model attachedModel, string where)
            : base(skinnedModel)
        {
            attachedSkinnedGameCharacter = new SkinnedCharacterAttacher(skinnedModel, attachedModel, where);
        }

        protected override void ExtraDrawing(Matrix view, Matrix projection, Vector3 cameraposition)
        {
            attachedSkinnedGameCharacter.Draw(view, projection, cameraposition);
        }

        SkinnedCharacterAttacher attachedSkinnedGameCharacter;
    }
}
